<html>
<head><meta charset="utf-8"><title>cycle error in inlining · t-compiler/wg-mir-opt · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/index.html">t-compiler/wg-mir-opt</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/cycle.20error.20in.20inlining.html">cycle error in inlining</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="181646409"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/cycle%20error%20in%20inlining/near/181646409" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/cycle.20error.20in.20inlining.html#181646409">(Nov 22 2019 at 15:13)</a>:</h4>
<p>wait we <em>handle the cycle error</em>?</p>



<a name="181646442"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/cycle%20error%20in%20inlining/near/181646442" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/cycle.20error.20in.20inlining.html#181646442">(Nov 22 2019 at 15:13)</a>:</h4>
<p>that seems odd, I thought we could not recover from cycles</p>



<a name="181646549"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/cycle%20error%20in%20inlining/near/181646549" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/cycle.20error.20in.20inlining.html#181646549">(Nov 22 2019 at 15:14)</a>:</h4>
<p><span aria-label="rofl" class="emoji emoji-1f923" role="img" title="rofl">:rofl:</span> ah no, it's this trick: <a href="https://github.com/rust-lang/rust/blob/eaac45a9a9e6d457a03ed354dacde990fe8c14ac/src/librustc_mir/transform/inline.rs#L104" target="_blank" title="https://github.com/rust-lang/rust/blob/eaac45a9a9e6d457a03ed354dacde990fe8c14ac/src/librustc_mir/transform/inline.rs#L104">https://github.com/rust-lang/rust/blob/eaac45a9a9e6d457a03ed354dacde990fe8c14ac/src/librustc_mir/transform/inline.rs#L104</a></p>



<a name="181646655"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/cycle%20error%20in%20inlining/near/181646655" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/cycle.20error.20in.20inlining.html#181646655">(Nov 22 2019 at 15:15)</a>:</h4>
<p>Yeah, you're right. It used to do something else <a href="https://github.com/rust-lang/rust/commit/82ec72391f36579b5bc8f04c3cb55cf06020fca1#diff-04789deb41c6e9576b3942e6a92e5551L101" target="_blank" title="https://github.com/rust-lang/rust/commit/82ec72391f36579b5bc8f04c3cb55cf06020fca1#diff-04789deb41c6e9576b3942e6a92e5551L101">https://github.com/rust-lang/rust/commit/82ec72391f36579b5bc8f04c3cb55cf06020fca1#diff-04789deb41c6e9576b3942e6a92e5551L101</a></p>



<a name="181646709"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/cycle%20error%20in%20inlining/near/181646709" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/cycle.20error.20in.20inlining.html#181646709">(Nov 22 2019 at 15:16)</a>:</h4>
<p><code>tcx.try_optimized_mir()</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>